

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Listado de Libros de la Biblioteca</title>
</head>
<body background="/stylesheets/muestraL.png">

    <c:choose>
            <c:when test="${!empty socios}">
                <c:forEach var="socio" items="${socios}">
                    <fmt:formatDate value="${socio.fechaAlta}" pattern="dd/MM/yy hh:mm:ss"/>
                    <c:out value="${socios.dni}"/>
                    <c:out value="${socios.nombre}"/>
                    <c:out value="${socios.apellidos}"/>
                    <c:out value="${socios.fechaAlta}"/>
                    <c:out value="${socios.email}"/>
                     <form action="/listadoP?accion=borrar" method="post">
                             <input type="submit" value="borrar"/>
                     </form>
                     <form action="listadoP?accion=sancionar">
                              <input type="submit" value="Sancionar" >
                     </form>

                </c:forEach>
            
             <c:otherwise>
                 <c:out>Todavía no hay ningún socio dado de alta
             </c:otherwise>
        </c:when>
    </c:choose>

<form action="menu_inicio">
	<input type="image" src="/stylesheets/atras.png" onclick="history.back()">
</form>
</body>
</html>